<div class="title"><?php echo __('LIST_OF_ID_UPLOADED'); ?></div>
<div id='idsresponse' class="contactUploadList">
    <div class="list">
        <ul>
            <?php
            if(!empty($fileData)){
                //pr($fileData);
                foreach ($fileData as $contacts){
                    if($contacts['FileUpload']['type'] == 'id'){?>
                        <li>
                            <span class="fileName" id ='<?php echo $contacts['FileUpload']['id']; ?>'><?php echo $contacts['FileUpload']['file_name']; ?></span>
                            <span class="link"><?php 
                            echo $this->Js->link(
                                $this->Html->image('icons/10/delete.png'),
                                array('controller' => 'payees', 'action' => 'deleteFileUpload/'. $contacts['FileUpload']['id']."/ids/".$contacts['FileUpload']['rand']),
                                array('update' => '#idsFile','escape'=>false)
                            );
                            ?></span>
                        </li><?php
                    }
                }
                echo $this->Js->writeBuffer();
            }
            ?>
        </ul>
    </div>
</div>
<?php  echo $this->Form->file('FileUploadIDs. ', array('type'=>'file', 'id' =>'upload_files_ids', 'multiple', 'style' => 'display:none;')); ?>
<div  class="uploadFiles" onclick="browseIdFile();">
    <?php echo __('UPLOAD_FILES'); ?> 
</div>
<div  class="deleteFiles" onclick="deleteIdFile();">
    <?php echo __('DELETE_FILES'); ?> 
</div>